# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=perl-djabberd-rosterstorage-sqlite
pkgver=1.00
pkgrel=11
pkgdesc="DJabberd sqlite roster storage module"
arch=("any")
url="https://search.cpan.org/~bradfitz/DJabberd-RosterStorage-SQLite/"
license=("GPL" "PerlArtistic")
source=("https://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/DJabberd-RosterStorage-SQLite-$pkgver.tar.gz")
depends=("perl-djabberd" "perl-dbd-sqlite")
md5sums=('6b8e666ab55e1e2bc455bdce5e6f4e42')

build() {
  cd "$srcdir"/DJabberd-RosterStorage-SQLite-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/DJabberd-RosterStorage-SQLite-$pkgver
  make pure_install doc_install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
